package com.pay.ioopos;

public enum KeyInfo {
    KEY_NUM_0(7, "数字0", "0"),
    KEY_NUM_1(8, "数字1", "1"),
    KEY_NUM_2(9, "数字2", "2"),
    KEY_NUM_3(10, "数字3", "3"),
    KEY_NUM_4(11, "数字4", "4"),
    KEY_NUM_5(12, "数字5", "5"),
    KEY_NUM_6(13, "数字6", "6"),
    KEY_NUM_7(14, "数字7", "7"),
    KEY_NUM_8(15, "数字8", "8"),
    KEY_NUM_9(16, "数字9", "9"),
    KEY_DOT(56, "小数点", "."),
    KEY_ADD(157, "加号", "+"),
    KEY_ENTER(66, "确定"),
    KEY_CANCEL(132, "取消"),
    KEY_UP(19, "向上"),
    KEY_DOWN(155, "向下"),
    KEY_MENU(82, "菜单"),
    KEY_SEARCH(131, "查询"),
    KEY_DELETE(67, "删除");

    private int code;
    private String name;
    private String value;
    KeyInfo(int code, String name) {
        this.code = code;
        this.name = name;
    }

    KeyInfo(int code, String name, String value) {
        this.code = code;
        this.name = name;
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }


}
